import {BasicBo, SearchBo} from "@/common/BasicDto.ts";
import {Column} from "@/common/Column.ts";

export class ParkingLogVo {
    public id?:number;
    public carPlate?:string;
    public money?:number;
    public paymentMethod?:string;
    public inDate?:Date
    public outDate?:Date
    public isMember?:boolean

    public static getColumn(){
        return [
            new Column("车牌","carPlate"),
            new Column("是否为会员","isMember"),
            new Column("进库时间","inDate"),
            new Column("出库时间","outDate"),
            new Column("费用","money"),
            new Column("结算方式","paymentMethod"),
        ] as Array<Column>
    }
}

export class ParkingLogBo extends BasicBo<ParkingLogVo>{
    public carPlate?:string;

    constructor(carPlate: string) {
        super();
        this.carPlate = carPlate;
    }
}

export class ParkingLogSearchBo extends SearchBo{
    public id?:number;
}